package com.zys.el.time.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;

@Data
@TableName("tb_deal")
@ApiModel("待办实体类")
public class Deal implements Serializable {
    /**
     * 待办id
     */
    @TableId
    @ApiModelProperty(value = "待办id")
    private Long dealId;

    /**
     * 用户id
     */
    @ApiModelProperty(value = "用户id", required = true)
    private Long userId;

    /**
     * 待办标题
     */
    @ApiModelProperty("待办标题")
    private String title;

    /**
     * 待办计时类型
     */
    @ApiModelProperty("待办计时类型")
    private String subTitle;

    /**
     * 本次专注时间
     */
    @ApiModelProperty("本次专注时间")
    private Integer time;

    /**
     * 逻辑删除
     */
    @TableLogic
    @TableField(select = false) // 查询时，取消返回该字段
    @ApiModelProperty(value = "逻辑删除", hidden = true)
    private Integer isDelete;

//    /**
//     * 完成次数
//     */
//    @TableField(exist = false)
//    private Integer finishTimes;

    /**
     * 专注总时长
     */
    @TableField(exist = false)
    @ApiModelProperty("专注总时长")
    private String absorbedDuration;

    /**
     * 专注次数
     */
    @TableField(exist = false)
    @ApiModelProperty("专注次数")
    private Integer absorbedTimes;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;

}
